Method and apparatus for modeling behavior using a probability distrubution function

ABSTRACT

A method and apparatus are disclosed for modeling patterns of behavior of humans or other animate objects and detecting a violation of a repetitive pattern of behavior. The behavior of one or more persons is observed over time and features of the behavior are recorded in a multi-dimensional space. Over time, the multi-dimensional data provides an indication of patterns of human behavior. Activities that are repetitive in terms of time, location and activity, such as sleeping and eating, would appear as a Gaussian distribution or cluster in the multi-dimensional data. Probability distribution functions can be analyzed using known Gaussian or clustering techniques to identify repetitive patterns of behavior and characteristics thereof, such as a mean and variance. Deviations from repetitive patterns of behavior can be detected and an alarm can be triggered, if appropriate.

CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This application claims the benefit of U.S. Provisional Application No. 60/325,399, filed Sep. 27, 2001. This application is related to United States Patent Application entitled “Method and Apparatus for Detecting an Event Based on Patterns of Behavior,” filed contemporaneously herewith.

FIELD OF THE INVENTION

[0002] The present invention relates to computer vision systems, and more particularly, to behavior modeling and detection methods and systems that identify events by observing patterns of behavior.

BACKGROUND OF THE INVENTION

[0003] Computer vision techniques are increasingly used to automatically detect or classify objects or events in images. For example, behavior modeling techniques are often applied to identify human behavior patterns. Typically, behavior analysis and modeling systems initially learn the patterns of behavior and thereafter detect deviations from such patterns of behavior. Generally, conventional behavior analysis techniques are focused on the detection of unusual events.

[0004] Most prior work in behavior modeling has been concerned with the modeling of trajectories either as probability distributions or Hidden Markov Models (HMMs). Once the trajectories are modeled, the goal is to predict the trajectory of the objects and to detect “unusual” trajectories. For example, trajectory analysis techniques have been applied to observe the trajectories of persons walking in a particular area and to thereafter generate an alarm if a trajectory indicates that a person has entered a restricted area.

[0005] While conventional trajectory analysis techniques perform well for many security applications, the validity and value of such trajectory analysis techniques for other applications, such as home monitoring, is questionable. In particular, when a behavior modeling system is monitoring the activities of one or more particular people, such as the remote monitoring of an elderly person in a home environment, the most relevant information is the current location or activity of the person, as opposed to how the person arrived at his or her current position or activity.

[0006] A need therefore exists for behavior modeling and detection methods and systems that identify an event by observing patterns of behavior and detecting a violation of a repetitive pattern of behavior.

SUMMARY OF THE INVENTION

[0007] Generally, a method and apparatus are disclosed for automatically learning and identifying patterns of behavior in image data. According to one aspect of the invention, a method and apparatus are provided for modeling patterns of behavior of humans or other animate objects and detecting a violation of a repetitive pattern of behavior. The present invention observes behavior of one or more persons over time and records features of the behavior in a multi-dimensional space. For example, the user behavior can be obtained for a multi-dimensional space that includes location (e.g., vertical and horizontal position), time, body posture and a level of body motion. Over time, the multi-dimensional data provides an indication of patterns of human behavior. Activities that are repetitive in terms of time, location and activity, such as sleeping and eating, would appear as a Gaussian distribution or cluster in the multi-dimensional data.

[0008] A learning algorithm is applied to the multi-dimensional data to identify repetitive patterns of behavior. In one exemplary embodiment, a probability density function (pdf) is computed from the multi-dimensional feature data to model human behavior. The probability distribution function can be analyzed using any method for PDF analysis, such as Gaussian or clustering techniques, to identify repetitive patterns of behavior and characteristics thereof. Generally, repetitive patterns of behavior will be manifested in the multi-dimensional feature data as a Gaussian distribution or as a cluster, each characterized by a mean and variance.

[0009] The probability distribution function can be clustered into distinct clusters, and clusters can be associated to patterns of behavior. Generally, clusters do not need to be labeled with the corresponding action, such as eating. It is sufficient to know that the cluster is associated with some distinct behavior.

[0010] According to another aspect of the invention, deviations from repetitive patterns of behavior can be detected and an alarm can be triggered, if appropriate. For example, when repetitive patterns of behavior are expressed as Gaussian distributions or clusters, the variance provides a threshold for determining whether current behavior should be classified as a deviation from a repetitive pattern of behavior. Generally, unusual behavior can indicate some kind of health problem or emergency. Thus, rules can optionally be established to generate an alarm when a deviation from a repetitive pattern of behavior satisfies one or more predefined conditions.

[0011] A more complete understanding of the present invention, as well as further features and advantages of the present invention, will be obtained by reference to the following detailed description and drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0012]FIG. 1 illustrates an exemplary video monitoring system in accordance with a preferred embodiment of the invention;

[0013]FIG. 2 illustrates a plot of human behavior observed in a multi-dimensional space in accordance with the present invention;

[0014]FIG. 3 is a flow chart describing an exemplary implementation of the feature extraction process of FIG. 1;

[0015]FIG. 4 is a flow chart describing an exemplary implementation of the PDF generation and analysis process of FIG. 1; and

[0016]FIG. 5 is a flow chart describing an exemplary implementation of the event detection process of FIG. 1.

DETAILED DESCRIPTION

[0017]FIG. 1 illustrates an exemplary video monitoring system 120 in accordance with the present invention. The video monitoring system 120 models patterns of behavior of humans or other animate objects and detects a violation of a repetitive pattern of behavior. For example, the video monitoring system video monitoring system 120 may monitor the sleeping and eating patterns of a human being observed. Thereafter, deviations from such patterns of behavior, such as sleeping for unusual intervals or at unusual times, or eating unusual amounts' or at irregular intervals, can be detected to trigger an alarm, if appropriate.

[0018] In one exemplary embodiment, discussed further below, the present invention observes behavior of one or more persons over time and records features of the behavior in a multi-dimensional space. For example, the user behavior can be obtained for a five-dimensional space that includes two dimensions for location (vertical and horizontal), time, body posture and a level of body motion. Over time, the multi-dimensional data provides an indication of patterns of human behavior. Activities that are repetitive in terms of time, location and activity, such as sleeping and eating, would appear as clusters in the multi-dimensional data.

[0019] Thereafter, a learning algorithm is applied to the multi-dimensional data to identify such repetitive patterns of behavior. For example, a probability density function (pdf) can be computed for modeling the person's behavior. The probability distribution function can be analyzed using Gaussian or clustering techniques to identify repetitive patterns of behavior and characteristics thereof. Generally, repetitive patterns of behavior will be identified in the multi-dimensional data as a Gaussian distribution or as a cluster, each characterized by a mean and variance.

[0020] Once repetitive patterns of behavior have been identified, deviations from such repetitive events or behavior can be detected to trigger an alarm, if appropriate. For example, when repetitive patterns of behavior are expressed as a Gaussian distribution or as a cluster, the variance of the Gaussian distribution or cluster provides a threshold for determining whether current behavior should be classified as part of a repetitive pattern of behavior or as a deviation from a repetitive pattern of behavior.

[0021] Generally, unusual behavior can indicate some kind of health problem or emergency. Thus, rules can be established for generating an alarm when behavior is detected that is a deviation from a repetitive pattern of behavior.

[0022] The probability distribution function can be clustered into distinct clusters, and clusters can be associated to patterns of behavior. Generally, clusters do not need to be labeled with the corresponding action, such as eating. It is sufficient to know that the cluster is associated with some distinct behavior. Thus, a knowledge-based description can optionally be provided of certain behaviors to recognize such behaviors from the probability distribution function. For example, since people usually sleep at night, a cluster with a pre-specified time (e.g., several hours during the night), posture (e.g., lying down) and activity (e.g., low level of body motion) can be labeled as sleeping. Moreover, from this description the location of the person's bed in the house can be inferred.

[0023] Referring now to FIG. 1, a video processing system 120 is shown that observes behavior and detects patterns of behavior in accordance with the present invention. Video processing system 120 is shown interoperating with one or more cameras, such as camera 105, through video feed 107, a Digital Versatile Disk (DVD) 110 and a network 115. Video processing system 120 comprises a processor 130, a medium interface 135, a network interface 140, and a memory 145. Memory 145 comprises image grabber 150, an input image 155, a feature extraction process 300, discussed below in conjunction with FIG. 3, a PDF generation and analysis process 400, discussed below in conjunction with FIG. 4, and an event detection process 500, discussed below in conjunction with FIG. 5.

[0024] As is known in the art, the methods and apparatus discussed herein may be distributed as an article of manufacture that itself comprises a computer-readable medium having computer-readable code means embodied thereon. The computer-readable program code means is operable, in conjunction with a computer system such as video processing system 120, to carry out all or some of the steps to perform the methods or create the apparatuses discussed herein. The computer-readable medium may be a recordable medium (e.g., floppy disks, hard drives, compact disks such as DVD 110 accessed through medium interface 135, or memory cards) or may be a transmission medium (e.g., a network 115 comprising fiber-optics, the world-wide web, cables, or a wireless channel using time-division multiple access, code-division multiple access, or other radio-frequency channel). Any medium known or developed that can store information suitable for use with a computer system may be used. The computer-readable code means is any mechanism for allowing a computer to read instructions and data, such as magnetic variations on a magnetic medium or height variations on the surface of a compact disk, such as DVD 110.

[0025] Memory 145 will configure the processor 130 to implement the methods, steps, and functions disclosed herein. The memory 145 could be distributed or local and the processor 130 could be distributed or singular. The memory 145 could be implemented as an electrical, magnetic or optical memory, or any combination of these or other types of storage devices. The term “memory” should be construed broadly enough to encompass any information able to be read from or written to an address in the addressable space accessed by processor 130. With this definition, information on a network, such as network 115 accessed through network interface 140, is still within memory 145 of the video processing system 120 because the processor 130 can retrieve the information from the network. It should also be noted that all or portions of video processing system 120 may be made into an integrated circuit or other similar device, such as a programmable logic circuit.

[0026] Now that a system has been discussed, probability models will be discussed that can provide global and local pixel dependencies and incremental training.

[0027]FIG. 2 illustrates a plot 200 of human behavior observed in a multi-dimensional space. In the exemplary embodiment of FIG. 2, human behavior is monitored based on time of day, body posture and location (in a home). The exemplary time of day dimension is continuous while the exemplary body posture (e.g., sitting, standing and laying down) and location dimensions are discrete. In addition, for illustration purposes, the exemplary location dimension has been translated from raw horizontal and vertical coordinates in a home to an indication of a particular room in the home (kitchen and bedroom). It is noted that the exemplary behavior plot 200 does not indicate a level of body motion.

[0028] The data indicated in FIG. 2 has been filtered for illustration purposes to remove random behavior and to otherwise remove behavior that does not constitute a pattern of behavior. The remaining data in FIG. 2 includes three clusters 210, 220, 230 that are each associated with a pattern of behavior. The cluster 210 indicates that the person is located in the kitchen, in a sitting position, around noon, and suggests that the person is having lunch. The cluster 220 indicates that the person is located in the kitchen, in a sitting position, around 6 p.m., and suggests that the person is having dinner. The cluster 230 indicates that the person is located in the bedroom, in a laying down position, during the time period from midnight to 7 a.m., and suggests that the person is sleeping.

[0029]FIG. 3 is a flow chart describing an exemplary feature extraction process 300 that is used to observe the person's behavior that is used to generate the exemplary behavior plot 200 shown in FIG. 2. Initially, the feature extraction process 300 obtains a frame of image data during step 310. Thereafter, the feature extraction process 300 extracts the position and posture of a person from the frame during step 320, e.g., using well-known tracking and posture analysis techniques, such as those described in S. Iwasawa et al., “Real-Time Human Posture Estimation Using Monocular Thermal Images,” Proc. of the 3rd Int'l Conf. on Automatic Face and Gesture Recognition, 492-497, Nara, Japan (Apr. 14-16, 1998).

[0030] The level of body motion can optionally be obtained during step 340, for example, using optical flow, motion history, or other motion estimation techniques. Suitable optical flow estimation techniques are described, for example, in J. L. Barron et al., “Performance of Optical Flow Techniques,” Int'l J. of Computer Vision, 12(1):43-77 (1994). The level of body motion is generally the amount of motion a person is producing while remaining in the vicinity of the same physical location.

[0031] The extracted position, body posture and level of body motion feature data can be time-stamped during step 350, so that the data can be plotted as a function of time of day, as shown in FIG. 2. Thereafter, program control terminates.

[0032]FIG. 4 is a flow chart describing an exemplary PDF generation and analysis process 400 that processes the feature data obtained by the feature extraction process 300 (FIG. 3) and generates and analyzes a probability distribution function in the exemplary embodiment to identify repetitive patterns of behavior and characteristics thereof. As shown in FIG. 4, the PDF generation and analysis process 400 initially obtains the feature data extracted by the feature extraction process 300 during step 410 in the desired multi-dimensional space.

[0033] Thereafter, the probability distribution function is fit to the extracted feature data during step 420. For a discussion of a suitable technique for fitting the mixture of Gaussians to the extracted feature data, see, for example, H. G. C. Traven, “A Neural Network Approach to Statistical Pattern Classification by ‘Semiparametric’ Estimation of Probability Density Functions,” IEEE Trans. on Neural Networks, 2, 366-377 (1991). Thereafter, program control terminates.

[0034] As previously indicated, repetitive patterns of behavior will be manifested in the multi-dimensional data as a Gaussian distribution or cluster, each characterized by a mean and variance. In the exemplary embodiment, the probability distribution function is a mixture of Gaussians, given in the form: $\begin{matrix} {{f(x)} = {\sum\limits_{j = 1}^{n}{\exp \left( {{- \frac{1}{2}}\left( {x - \mu_{j}} \right)^{T}{C_{j}^{- 1}\left( {x - \mu_{j}} \right)}} \right)}}} & {{Eq}.\quad (1)} \end{matrix}$

[0035] where x denotes a point in the multidimensional space, n denotes the number of Gaussians (unknown), and μ_(j) and C_(j) denote the mean and covariance, respectively, of the j^(th) Gaussian (also unknown).

[0036]FIG. 5 is a flow chart describing an exemplary event detection process 500 that detects deviations from repetitive patterns of behavior. For example, when repetitive patterns of behavior are expressed as a Gaussian distribution or as a cluster, the variance of the Gaussian distribution or cluster provides a threshold for determining whether current behavior should be classified as part of a repetitive pattern of behavior or as a deviation from a repetitive pattern of behavior. The exemplary event detection process 500 employs a number of rules to generate an alarm when behavior is detected that is a deviation from a repetitive pattern of behavior.

[0037] As shown in FIG. 5, the event detection process 500 initially observes the image data during step 510. Thereafter, the event detection process 500 extracts a number of features during step 520, such as position, body posture and level of body motion feature data. The extracted feature data is then compared during step 540 to the probability distribution function generated by the PDF generation and analysis process 400.

[0038] A test is performed during step 550 to determine if the extracted feature data exceed the variance of any Gaussian distribution or cluster by more than a predefined threshold. It is noted that the threshold is generally based on the variance of each Gaussian distribution or cluster (e.g., variance plus some tolerance). If it is determined during step 550 that the extracted feature data does not exceed the variance of any Gaussian distribution or cluster by more than a predefined threshold, then program control returns to step 510 to continue monitoring human behavior for further deviations.

[0039] If, however, it is determined during step 550 that the extracted feature data does exceed the variance of any Gaussian distribution or cluster by more than a predefined threshold, then the observed behavior is likely a deviation from a repetitive pattern of data. Data indicative of random behavior can be filtered out, for example, using a Kullback-Leibler distance technique or an intersection, discussed below in conjunction with equations 2 and 3, respectively.

[0040] The observed behavior is flagged as a deviation from a repetitive pattern of data during step 560. In addition, the observed behavior is evaluated during step 570 to determine if it violates a number of exemplary predefined rules that have been established to generate an alarm when certain behavior is detected that is a deviation from a repetitive pattern of behavior. If it is determined during step 570 that one or more of the exemplary predefined rules are violated then an alarm is generated during step 580 before program control terminates.

[0041] It is noted that the exemplary event detection process 500 described above decomposes the probability distribution function (Eq. 1) characterizing patterns of behavior into n single Gaussians, and newly detected behavior, b(x), is compared against each of the Gaussians separately. Generally, when new behavior is detected, the event detection process 500 measures how far new behavior is from the probability distribution function, f(x) from Eq. 1, and there are number of ways to do that. One way is to compute the overlap between the normal behavior, f(x), and the newly detected behavior, b(x). This can be done using, for instance, Kullback-Leibler distance: $\begin{matrix} {{d_{KL}\left( {f,b} \right)} = {\int{{f(x)}\log \frac{f(x)}{b(x)}{x}}}} & (2) \end{matrix}$

[0042] where integration is performed over the entire space. Equation (2) is merely a more compact expression of the technique implemented by the exemplary event detection process 500 of FIG. 5.

[0043] Another distance function that can be used is simple intersection defined as:

d _(int) (f,b)=∫min(f(x),b(x))dx.  (3)

[0044] It is note that if 0≦d_(int)≦1. If b≡f then d_(int)=1, and if b∩f=0 d_(int)=0. If b is uniformly distributed random signal, then d_(int)≈0.

[0045] In a further variation, patterns of behavior can be identified by clustering the data, which is effectively the same technique as fitting a mixture of Gaussians, discussed above in conjunction with FIG. 4. The difference is that an analytical function is not estimated, but the optimal way to group data into clusters is determined. These clusters may not be represented in analytical, but only in relational form (i.e., we could say certain set of points belong to one cluster and some other set of points belong to another cluster). Whenever a new behavior is detected, we would check whether it fits some of our clusters (usual behavior), or it should be a distinct cluster (unusual behavior). Then, the cluster size would determine how “normal” behavior is (the bigger the size, the more normal the behavior). Any clustering technique may be employed. Some of the more popular clustering techniques are described, for example, in Richard Duda et al., “Pattern Classification,” Ch. 10, Willey (2001).

[0046] It is to be understood that the embodiments and variations shown and described herein are merely illustrative of the principles of this invention and that various modifications may be implemented by those skilled in the art without departing from the scope and spirit of the invention. 

What is claimed is:
 1. A method for modeling behavior of an animate object, said method comprising the steps of: obtaining a plurality of images; extracting a plurality of features from said plurality of images; and analyzing said plurality of extracted features in a multi-dimensional space.
 2. The method of claim 1, wherein said multi-dimensional space provides a probability distribution function of said image data.
 3. The method of claim 1, further comprising the step of clustering said extracted feature data to identify at least one repetitive pattern of behavior.
 4. The method of claim 3, wherein said clustering step further comprises the step of computing a mean and variance of each cluster.
 5. The method of claim 3, wherein a cluster of data corresponds to a pattern of behavior.
 6. The method of claim 1, further comprising the step of fitting said extracted feature data to a probability distribution function to identify at least one Gaussian having a mean and a variance.
 7. The method of claim 6, wherein a Gaussian corresponds to a pattern of behavior.
 8. The method of claim 1, wherein said extracted feature data includes an indication of time.
 9. The method of claim 1, wherein said extracted feature data includes an indication of location.
 10. The method of claim 1, wherein said extracted feature data includes an indication of activity.
 11. The method of claim 1, wherein said extracted feature data includes an indication of body posture.
 12. A system for modeling behavior of an animate object, said system comprising: a memory that stores computer-readable code; and a processor operatively coupled to said memory, said processor configured to implement said computer-readable code, said computer-readable code configured to: obtain a plurality of images; extract a plurality of features from said plurality of images; and analyze said plurality of extracted features in a multi-dimensional space.
 13. The system of claim 12, wherein said multi-dimensional space provides a probability distribution function of said image data.
 14. The system of claim 12, wherein said processor is further configured to cluster said extracted feature data to identify at least one repetitive pattern of behavior.
 15. The system of claim 14, wherein said processor is further configured to compute a mean and variance of each cluster.
 16. The system of claim 14, wherein a cluster of data corresponds to a pattern of behavior.
 17. The system of claim 12, wherein said processor is further configured to fit said extracted feature data to a probability distribution function to identify at least one Gaussian having a mean and a variance.
 18. The system of claim 17, wherein a Gaussian corresponds to a pattern of behavior.
 19. An article of manufacture for modeling behavior of an animate object, said article of manufacture comprising: a computer-readable medium having computer-readable code means embodied thereon, said computer-readable program code means comprising: a step to obtain a plurality of images; a step to extract a plurality of features from said plurality of images; and a step to analyze said plurality of extracted features in a multi-dimensional space.
 20. The article of manufacture of claim 19, wherein said multi-dimensional space provides a probability distribution function of said image data. 